package libra.config;

import javax.annotation.PostConstruct;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

//获取YML配置文件中的指定前缀信息，映射到实体类
@ConfigurationProperties(prefix="project-dubbo-env")
//Spring注解，将对象实例化注册进容器
@Component
//lombok注解，为对象生成getter、seteer方法等
@Data
public class DubboEnv_7014 {
	public Boolean isOpenZookeeper;
	public Integer loadbalanceWeight;
	
	@PostConstruct
	public void afterInit() {
		System.out.println( this );
	}
}
